package cn.baage.campus.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description: 帖子详情VO
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
@Data
@ApiModel(value = "贴子详情VO")
public class PostingDetailResVO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "分类ID")
    private String categoryId;

    @ApiModelProperty(value = "喜欢数")
    private Integer likeNum;

    @ApiModelProperty(value = "阅读数")
    private Integer readNum;

    @ApiModelProperty(value = "图片数")
    private Integer imgNum;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty(value = "状态：0默认 1已完结")
    private Integer status;

    @ApiModelProperty(value = "是否包含图片")
    private Boolean haveImg;

    @ApiModelProperty(value = "是否匿名")
    private Boolean anonymous;

    @ApiModelProperty(value = "内容")
    private String detail;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "图片")
    private List<String> imgList;

    @ApiModelProperty(value = "展示时间")
    private String showTime;

    @ApiModelProperty(value = "喜欢状态")
    private Integer likeStatus = 0;

}
